Replaces the bitmaps in an IconRef
with bitmaps from a specified resource file.
pascal OSErr OverrideIconRefFromResource(
IconRef iconRef,
FSSpec*resourceFile,
SInt16 resourceID);
iconRef
An pointer to a value of type IconRef
to be updated.
resourceFile
A pointer to an FSSpec
data structure identifying the resource file containing the replacement bitmaps. For more information on the FSSpec
structure, see
Inside Macintosh: Files.
resourceID
A value of type SInt16
specifying the resource ID containing the replacement bitmaps. This value must be non-zero. You should provide a resource of type 'icns'
if possible. If an 'icns'
resource is not available, Icon Services uses standard icon suite resources, such as 'ICN#'
, instead.